package com.yangchoi.jetpackcompose.ui.main.page

import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import com.yangchoi.jetpackcompose.ui.baseui.BaseComposePage
import com.yangchoi.jetpackcompose.ui.widget.component.CommonTopBar
import com.yangchoi.jetpackcompose.ui.widget.component.WebView

@Composable
fun WebViewPage(navHostController: NavHostController,url:String? = null,htmlData:String? = null){
    BaseComposePage(topBarContent = {
        CommonTopBar(title = "详情", onBackClick = {navHostController.popBackStack()})
    }) {
        WebView(url = url)
    }
}